﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SFP;

namespace HamsterDelivery.Menus
{
    public abstract class MenuManager
    {
        public static StartMenu StartMenu { get; private set; }
        public static PauseMenu PauseMenu { get; private set; }
        public static InfoMenu InfoMenu { get; private set; }

        private static Menu _activeMenu;
        public static Menu ActiveMenu
        {
            get
            {
                return _activeMenu;
            }
            
            set
            {
                _activeMenu = value;
                _activeMenu.ActiveOption = _activeMenu.DefaultOption;
            }
        }

        public static void initMenus(HamsterGame game)
        {
            StartMenu = new StartMenu(game);
            PauseMenu = new PauseMenu(game);
            InfoMenu = new InfoMenu(game);

            ActiveMenu = StartMenu;
        }
    }
}
